package com.twu.biblioteca;

/**
 * Created by mgehwolf on 03/08/2014.
 */
public abstract class LibraryItem {

    private int code;
    private String name;
    private String creator;
    private String year;
    private boolean availability;

    public LibraryItem(int code, String name, String creator, String year, boolean availability){
        this.code = code;
        this.name = name;
        this.creator = creator;
        this.year = year;
        this.availability = availability;
    }
    public String getName() {
        return name;
    }

    public String getAuthor() {
        return creator;
    }

    public String getYear() { return year; }

    public int getCode() { return code; }

    public boolean getAvailability() { return availability; }

    public void setAvailability(boolean availability) { this.availability = availability; }

    public abstract void addNewItem(int code, String name, String author, String year, boolean availability, int rating);
}
